import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)
<<<<<<< HEAD
import Index from '../views/Index/Index.vue';

const routes = [
=======

// 导入模块化之后的路由文件
import shopRouter from './modules/shop'
import dingcanRoutes from "./modules/diancan"
import ShopyRoutes from "./modules/shopy"
import centerRouters from "./modules/center";

const routes = [
  {
    path: "/",
    redirect: "/shop"
  },
  shopRouter,
// 订餐列表路由
...dingcanRoutes,
ShopyRoutes,
...centerRouters,
>>>>>>> 5b11b588ca30a41be0ef38c097620d092878c9a3

  {
    path: '/',
    component: Index
  },
  // {
  //   path: '/about',
  //   name: 'About',
  //   // route level code-splitting
  //   // this generates a separate chunk (about.[hash].js) for this route
  //   // which is lazy-loaded when the route is visited.
  //   component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  // }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
